<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script src="d.js"></script>
<script>
new Promise((resolve,reject) =>{
  resolve(new Promise((resolve,reject) =>{ resolve(100)}))
}).then(value =>{
  console.log("value",value);
}).catch(reason =>{
  console.log("reason",reason);
})

</script>
</body>
</html>